package com.nobrain.uboard.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.TextView;

public class ADT_main_services extends BaseAdapter {
	private Context mContext;
	private String[] temp;
	public ADT_main_services(Context mContext) {
		this.mContext = mContext;
		temp = new String[10];
		
		for(String s :temp){
			s="It's for Testing~!!!!!!!!";
		}
	}

	@Override
	public int getCount() {
		return temp.length;
	}

	@Override
	public Object getItem(int position) {
		return temp[position];
	}

	@Override
	public long getItemId(int position) {
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		TextView tv ;
		if(convertView == null){
			tv= new TextView(mContext);
			tv.setLayoutParams(new GridView.LayoutParams(GridView.LayoutParams.MATCH_PARENT,GridView.LayoutParams.MATCH_PARENT));
			
			convertView = tv;
		}
		
		tv = (TextView) convertView;
		
		tv.setText(temp[position]);
		
		return convertView;
	}

}
